// Copyright 2019 JDAI Inc.
// License ()
// Author:  XXXXXXX (), XXXX@jd.com
// Filename:  RPCContext.h
// Description:
// Created:  12/05/19 12:31:01
// Version:  1.0
// Company:  JDAI

#ifndef RPCContext_H_
#define RPCContext_H_

#include "CommHead.h"
#include "HttpParam.h"

using brpc::Controller;
using google::protobuf::Closure;
using std::shared_ptr;
using std::endl;
using std::make_shared;

class RPCContext {
  public:
    RPCContext();
    ~RPCContext();

    Controller* mpRpcCntl;
    Closure* mpRpcDone;
    HttpParamSPtr mspHttpParam;
};

typedef shared_ptr < RPCContext > RPCContextSPtr;   //动态指针

#endif
